'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {
    await queryInterface.addColumn('tenants', 'default_password', {
      type: Sequelize.STRING(255),
      allowNull: true,
      defaultValue: 'Pass123456', // 默认的初始密码
      comment: '租户创建新用户时的默认密码'
    });
  },

  down: async (queryInterface) => {
    await queryInterface.removeColumn('tenants', 'default_password');
  }
};

